// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
//导入element组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false;
//导入router路由组件
import router from './router';

import http from '../request/interceptor'
//配置全局 elementui
Vue.use(ElementUI);
//配置全局的router
Vue.use(router)
Vue.prototype.http = http
/* eslint-disable no-new */
new Vue({
  el: '#app',
  //将路由组件绑定在vue对象中
  router,
  components: { App },
  template: '<App/>',

})
